package edu.sias.service;

import edu.sias.dao.CategoryDao;
import edu.sias.pojo.Category;

import java.sql.SQLException;
import java.util.List;

//文章类型 操作的业务类
public class CategoryService {

    CategoryDao categoryDao = new CategoryDao();

    public List<Category> categoryList(){
        List<Category> list
                = null;
        try {
            list = categoryDao.getCategory();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return list;
    }


}
